{{--select组件--}}
<div class="{{$class??'layui-col-md12'}}">
    <div class="layui-row layui-col-space10 layui-form-item">
        <div class="layui-form-item">
            <label class="layui-form-label">@if($must??true)<span style="color:red">*</span>@endif{{ $label??'标签' }}：</label>
            <div class="layui-input-block">
                <select name="{{ $name??'name' }}" @if($disabled??false) disabled @endif lay-filter="{{$filter??$name}}">
                    <option value="0">{{ $first??'请选择' }}</option>
                    @forelse($val as $k=>$item)
                        <option value="{{ $k }}" @if(isset($checked)&&$k==$checked) selected @endif>{!! $item !!}</option>
                    @empty
{{--                        <option value="">没有可选</option>--}}
                    @endforelse
                </select>
            </div>
        </div>
    </div>
</div>